package com.javasoft.dao.WJC;

import com.javasoft.entity.WJC.StudentAnswer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentAnswerRepository extends JpaRepository<StudentAnswer, Long> {
    StudentAnswer findByExamIdAndStudentId(Long examId, Long studentId);
    List<StudentAnswer> findByExamId(Long examId);
}
